package com.gupaoedu.design.decorator.work.jdk9;

import com.gupaoedu.design.decorator.work.jdk8.IJdk8String;

/**
 * <p></p>
 *
 * @author Andy
 * @date 2018/3/20.
 */
public class Jdk9String implements IJdk9String {
    private IJdk8String string;

    public Jdk9String(IJdk8String string) {
        this.string = string;
    }

    public String getString(byte[] bytes) {
        return new String(bytes);
    }

    public String getString(char[] chars) {
        return string.getString(chars);
    }
}
